home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / CoconutSoccer.swf / scripts / DefineButton2_61 / BUTTONCONDACTION on(press).as
Text File  |  2006-06-13  |  946b  |  34 lines

  1. on(press){
  2.    set("../:botleft",int(eval("../:botleft")) + 1);
  3.    if("../:int"(eval("../:topleft")) < int(eval("../:botleft")))
  4.    {
  5.       set("../:temp_most_frequent_part","botleft");
  6.    }
  7.    if("../:int"(eval("../:topmiddle")) < int(eval("../:botleft")))
  8.    {
  9.       set("../:temp_most_frequent_part","botleft");
  10.    }
  11.    if("../:int"(eval("../:botmiddle")) < int(eval("../:botleft")))
  12.    {
  13.       set("../:temp_most_frequent_part","botleft");
  14.    }
  15.    if("../:int"(eval("../:topright")) < int(eval("../:botleft")))
  16.    {
  17.       set("../:temp_most_frequent_part","botleft");
  18.    }
  19.    if("../:int"(eval("../:botright")) < int(eval("../:botleft")))
  20.    {
  21.       set("../:temp_most_frequent_part","botleft");
  22.    }
  23.    if(3 < eval("../:botleft"))
  24.    {
  25.       set("../:most_frequent",eval("../:temp_most_frequent_part"));
  26.    }
  27.    gotoAndPlay(110);
  28.    tellTarget("../keeper")
  29.    {
  30.       dest = "4";
  31.       gotoAndPlay(2);
  32.    }
  33. }
  34.